package sac.modelo.data.transacciones;

/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: 
 * License Type: Evaluation
 */
import java.io.Serializable;
import javax.persistence.*;

import sac.modelo.data.maestros.Animal;
import sac.modelo.data.maestros.Medicamento;
@Entity
@org.hibernate.annotations.Proxy(lazy=false)
@Table(name="Desparacitacion")
public class Desparacitacion implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Desparacitacion() {
	}
	
	@Column(name="id_desparacitacion", nullable=false)	
	@Id		
	private int id_desparacitacion;
	
	@Column(name="fecha_desparacitacion", nullable=false)	
	@Temporal(TemporalType.DATE)	
	private java.util.Date fecha_desparacitacion;
	
	@ManyToOne(targetEntity=Medicamento.class, fetch=FetchType.LAZY)	
	@org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.LOCK})	
	@JoinColumns({ @JoinColumn(name="Medicamentoid_medicamento", referencedColumnName="id_medicamento", nullable=false) })	
	@org.hibernate.annotations.LazyToOne(value=org.hibernate.annotations.LazyToOneOption.NO_PROXY)	
	private Medicamento medicamentoid_medicamento;
	
	@ManyToOne(targetEntity=Animal.class, fetch=FetchType.LAZY)	
	@org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.LOCK})	
	@JoinColumns({ @JoinColumn(name="Animalid_animal", referencedColumnName="id_animal", nullable=false) })	
	@org.hibernate.annotations.LazyToOne(value=org.hibernate.annotations.LazyToOneOption.NO_PROXY)	
	private Animal animalid_animal;
	
	private void setId_desparacitacion(int value) {
		this.id_desparacitacion = value;
	}
	
	public int getId_desparacitacion() {
		return id_desparacitacion;
	}
	
	public int getORMID() {
		return getId_desparacitacion();
	}
	
	public void setFecha_desparacitacion(java.util.Date value) {
		this.fecha_desparacitacion = value;
	}
	
	public java.util.Date getFecha_desparacitacion() {
		return fecha_desparacitacion;
	}
	
	public void setMedicamentoid_medicamento(Medicamento value) {
		this.medicamentoid_medicamento = value;
	}
	
	public Medicamento getMedicamentoid_medicamento() {
		return medicamentoid_medicamento;
	}
	
	public void setAnimalid_animal(Animal value) {
		this.animalid_animal = value;
	}
	
	public Animal getAnimalid_animal() {
		return animalid_animal;
	}
	
	public String toString() {
		return String.valueOf(getId_desparacitacion());
	}
	
}
